(Al-Kahf) 18 : 82
وَأَمَّا الْجِدَارُ فَكَانَ لِغُلَامَيْنِ يَتِيمَيْنِ فِي الْمَدِينَةِ وَكَانَ تَحْتَهُ كَنْزٌ لَهُمَا وَكَانَ أَبُوهُمَا صَالِحًا فَأَرَادَ رَبُّكَ أَنْ يَبْلُغَا أَشُدَّهُمَا وَيَسْتَخْرِجَا كَنْزَهُمَا رَحْمَةً مِنْ رَبِّكَ ۚ وَمَا فَعَلْتُهُ عَنْ أَمْرِي ۚ ذَٰلِكَ تَأْوِيلُ مَا لَمْ تَسْطِعْ عَلَيْهِ صَبْرًا

And in the case of the wall, it belonged to two orphan boys in the city, and there was beneath it a treasure for them, and their father was among the honorable. So your Lord intended that they reach maturity and extract their treasure, as a Mercy from your Lord. And I did it not of my own accord; that is the interpretation about which you didn’t have patience".

Just like Messenger Ibrahim, Messenger Moses was also shown the Sovereignty of the universe to make him among the convinced believers as explained in verse 6: 75. Today, the Confirmed Truth Adhikr which explains everything is codified as the Splendid Book. So those who holdfasts Adhikr, he did holdfast Lord and is guided into the Straightpath as explained in verses 3: 101-102 and 5: 48.

As the believers are testifying the Insight—Adhikr—in his life, after his death he can see with his soul the deeds of his offspring and can control them as explained in verse 9: 105. See explanation 3: 26-27; 4: 85 and 17: 13-14.